/*
 * themes/default/common/css/scrollbar.css
 * Copyright (C) 2015-2016 Neusoft Co.Ltd All rights reserved.
 * 功能：定义滚动条主题样式
 * 
 * VERSION          DATE            BY          CHANGE/COMMENT
 * ————————————————————————————————————————————————————————————————
 * @version 1.00    2016-05-03      fuzh        初版
 * 
*/
@charset "utf-8";

/*************** SCROLLBAR BASE CSS ***************/

body.layout .scroll-wrapper {
	overflow: hidden !important;
	padding: 0 !important;
	position: relative;
}

body.layout .scroll-wrapper > .scroll-content {
	border: none !important;
	box-sizing: content-box !important;
	width: auto !important;
	max-width: none !important;
	height: auto;
	max-height: none;
	position: relative !important;
	top: 0;
	left: 0;
	margin: 0;
	padding: 0;
	overflow: scroll !important;
}

body.layout .scroll-wrapper > .scroll-content::-webkit-scrollbar {
	width: 0;
	height: 0;
}

body.layout .scroll-element {
	display: none;
}

body.layout .scroll-element, .scroll-element div {
	box-sizing: content-box;
}

body.layout .scroll-element.scroll-x.scroll-scrollx_visible, 
body.layout .scroll-element.scroll-y.scroll-scrolly_visible {
	display: block;
}

body.layout .scroll-element .scroll-bar, 
body.layout .scroll-element .scroll-arrow {
	cursor: pointer;
}

body.layout .scroll-textarea {
	border: 1px solid #cccccc;
	border-top-color: #999999;
}

body.layout .scroll-textarea > .scroll-content {
	overflow: hidden !important;
}

body.layout .scroll-textarea > .scroll-content > textarea {
	border: none !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	max-height: none !important;
	margin: 0;
	padding: 2px;
	overflow: scroll !important;
	outline: none;
	position: relative !important;
	top: 0;
}

body.layout .scroll-textarea > .scroll-content > textarea::-webkit-scrollbar {
	width: 0;
	height: 0;
}

/*************** SCROLLBAR RAIL ***************/

body.layout .scrollbar-rail > .scroll-element, 
body.layout .scrollbar-rail > .scroll-element div {
	border: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	position: absolute;
	z-index: 10;
}

body.layout .scrollbar-rail > .scroll-element {
	background-color: transparent;
}

body.layout .scrollbar-rail > .scroll-element div {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

body.layout .scrollbar-rail > .scroll-element .scroll-element_size {
	background-color: #999;
	background-color: rgba(0, 0, 0, 0.3);
}

body.layout .scrollbar-rail > .scroll-element .scroll-element_outer:hover .scroll-element_size {
	background-color: #666;
	background-color: rgba(0, 0, 0, 0.5);
}

body.layout .scrollbar-rail > .scroll-element.scroll-x {
	min-width: 100%;
	width: 100%;
	height: 12px;
	bottom: 0;
	left: 0;
	padding: 3px 0 2px;
}
body.layout .scrollbar-rail > .scroll-element.scroll-y {
	width: 12px;
	min-height: 100%;
	height: 100%;
	top: 0;
	right: 0;
	padding: 0 2px 0 3px;
}

body.layout .scrollbar-rail > .scroll-element .scroll-bar {
	background-color: #d0b9a0;
	
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

body.layout .scrollbar-rail > .scroll-element .scroll-element_outer:hover .scroll-bar {
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* scrollbar height/width & offset from container borders */
body.layout .scrollbar-rail > .scroll-content.scroll-scrollx_visible {
	margin-top: 17px;
	top: -17px;
}
body.layout .scrollbar-rail > .scroll-content.scroll-scrolly_visible {
	left: -17px;
	margin-left: 17px;
}

body.layout .scrollbar-rail > .scroll-element.scroll-x .scroll-bar {
	min-width: 10px;
	height: 10px;
	top: 1px;
}
body.layout .scrollbar-rail > .scroll-element.scroll-y .scroll-bar {
	width: 10px;
	min-height: 10px;
	left: 1px;
}

body.layout .scrollbar-rail > .scroll-element.scroll-x .scroll-element_outer {
	height: 15px;
	left: 5px;
}
body.layout .scrollbar-rail > .scroll-element.scroll-x .scroll-element_size {
	height: 2px;
	top: 5px;
	left: -10px;
}

body.layout .scrollbar-rail > .scroll-element.scroll-y .scroll-element_outer {
	width: 15px;
	top: 5px;
}
body.layout .scrollbar-rail > .scroll-element.scroll-y .scroll-element_size {
	width: 2px;
	top: -10px;
	left: 5px;
}

/* update scrollbar offset if both scrolls are visible */
body.layout .scrollbar-rail > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size {
	left: -25px;
}
body.layout .scrollbar-rail > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size {
	top: -25px;
}

body.layout .scrollbar-rail > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_track {
	left: -25px;
}
body.layout .scrollbar-rail > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_track {
	top: -25px;
}